<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>应急指挥 平台</title>
    
	<meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="<%=basePath%>resources/plugins/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="<%=basePath%>resources/css/login.css" media="all">
    
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
	<!--[if lt IE 9]>
	  <script src="<%=basePath%>resources/plugins/patch/html5.min.js"></script>
	  <script src="<%=basePath%>resources/plugins/patch/respond.min.js"></script>
	<![endif]-->
  </head>
  
<body class=" layui-bg-cyan">
    <div class="login">
		<h1>应急指挥平台</h1>
		<form class="layui-form">
			<div class="layui-form-item">
				<input class="layui-input" name="username" placeholder="用户名"
					value="" lay-verify="required" lay-verType="tips" type="text"
					autocomplete="off">
			</div>
			<div class="layui-form-item">
				<input class="layui-input" name="password" placeholder="密码" value=""
					lay-verify="required" lay-verType="tips" type="password"
					autocomplete="off">
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit="" lay-filter="login_btn">登录</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</div>
</body>
<script type="text/javascript" src="<%=basePath%>resources/plugins/layui/layui.js"></script>
<script type="text/javascript">
	layui.use([ 'form' ], function() {
		var $ = layui.$;
		var form = layui.form;
		form.on('submit(login_btn)', function(data) {
			//console.log(JSON.stringify(data));
			//location.hash = '<%=basePath %>' + 'pages/gis/index.jsp';
			location.href = '<%=basePath %>' + 'pages/gis/index.jsp';
			return false;
		});
	});
</script>
</html>
